package com.wb.mianxiangduixiang;

/**
 * @author 黄衡熙
 * @version 1.0
 * @date 2025年07月18日14:22
 */
public class Test_gouzaofangfa {
    public static void main(String[] args) {
        Person1 person = new Person1();
        Person1 person1 = new Person1("花东煜",18,1);


    }
}
class Person1{
    String name;
    int age;
    int id;
    public Person1(){
        System.out.println("这是无参构造");
    }
    public Person1(int a,int id){
        System.out.println(a+" "+id);
    }
    public Person1(String name, int age, int id) {
        this(age,id);
        System.out.println(name+" "+age+" "+id );
    }

}